<template>
    <div class="child">
        大儿子: {{title}}
        <button @click="$emit('hbb', '爸爸爸爸')">click</button>
    </div>
</template>

<script>
export default {
    props: ["title"],
    created() {
        this.$bus.$on('ganfan', (e) => {
            console.log(e, 'child2')
        })
    },
    destroyed() {
        this.$bus.$off('ganfan')
    }
}
</script>

<style>

</style>